package com.weiqk.pmdemo.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.persistence.*;

@Data
@ApiModel("字典")
@Entity     // 作为hibernate 实体类
@Table(name = "PM_DIC")
public class Dic {


//    DIC_ID	NUMBER	16
//    DIC_CLASS	VARCHAR2	32
//    DIC_CODE	NUMBER	8
//    DIC_NAME	VARCHAR2	64
//    ORDER_VALUE	NUMBER	8
//    VALID_FLAG	NUMBER	8
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "DIC_ID")
    private int DicId;

    @Column(name = "DIC_CLASS")
    private String DicClass;

    @Column(name = "DIC_CODE")
    private int DicCode;

    @Column(name = "DIC_NAME")
    private String DicName;

    @Column(name = "ORDER_VALUE")
    private int OrderValue;

    @Column(name = "VALID_FLAG")
    private int ValidFlag;
}
